home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / serial / callback.001 / callback~ / callback / lib / process / killinit.c next >
C/C++ Source or Header  |  1996-08-01  |  489b  |  21 lines

  1.  
  2. #include "process.p"
  3. #include "../../configure.h"
  4.  
  5. void killinit()
  6. {
  7.     activate_ttylines();        /* kill them all */
  8.  
  9.     load(the_enablefile);        /* reload the enable files */
  10.  
  11.     make_configfile();                  /* make final configuration file */
  12.  
  13.     if (kill(PID_INIT, SIGHUP))        /* kill init (rereads inittab) */
  14.         error("can't restart init.");
  15.  
  16.     modem_respawn();                     /* kill all modem processes */
  17.  
  18.     puts("init restarted (modemlines enabled)\n");
  19. }
  20.     
  21.